package com.qcby.llmtchstd.dao;

import com.qcby.llmtchstd.entity.TeachingPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeachingPlanDao {

    List<TeachingPlan> searchByName(@Param("name") String name,@Param("id") int id);

    TeachingPlan selectThis(String name);

    int deleteThis(int id);

    List<TeachingPlan> listByTeacherId(int teacherId);

    int insertPlan(TeachingPlan plan);

    TeachingPlan selectById(int id);

    List<TeachingPlan> listAll();

    int selectCount(Integer id);

    List<TeachingPlan> selectPage(@Param("offset") int offset, @Param("pageSize") int pageSize,@Param("id") int id);

    Integer countSer(@Param("name") String name,@Param("id") int id);
}